package com.eaoa.uc.document.bo;

import com.eaoa.base.EABaseBusinessObject;
import com.eaoa.dao.pub.PubDocumentDAO;
import com.eaoa.vo.pub.PubDocument;

public class PubDocumentDeleteBO extends EABaseBusinessObject {

	private Long documentno;

	private static PubDocumentDAO documentDAO = new PubDocumentDAO();

	public PubDocumentDeleteBO(Long documentno) {
		super();
		this.documentno = documentno;
	}

	protected void performBusinessLogic() {

		PubDocument po = (PubDocument) documentDAO.loadAndLock(documentno);

		documentDAO.delete(po);

	}

}
